package com.xbongbong.pro.index.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * @description: 看板下指标pojo
 * @Author: hongxiao
 * @date: 2019-03-18 19:54
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class IndexBoardChartPojo implements Serializable {
    private static final long serialVersionUID = 7816304814140562821L;
    /**
     * 指标id
     */
    private Long id;
    /**
     * 排序值（从大到小）
     */
    private Integer sort;
    /**
     * 名称
     */
    private String name;
    /**
     * 图表chart
     */
    private Boolean showChart;

    /**
     * 指标/图表图标
     */
    private String icon;

    /**
     * 单位（系统指标的单位可默认，如合同金额为“元”）
     */
    private String unit;

    /**
     * 颜色，16进制色，如 #FF0000
     */
    private String color;

    /**
     * 自定义、系统标志
     * @see com.xbongbong.pro.statistic.enums.StatisticsTypeEnum
     */
    private Integer statisticsType;

    public IndexBoardChartPojo(Long id, Integer sort, String name, Boolean showChart, Integer statisticsType) {
        this.id = id;
        this.sort = sort;
        this.name = name;
        this.showChart = showChart;
        this.statisticsType = statisticsType;
    }


    public IndexBoardChartPojo(Long id, Integer sort, String name, Boolean showChart, Integer statisticsType,String icon, String unit, String color) {
        this.id = id;
        this.sort = sort;
        this.name = name;
        this.showChart = showChart;
        this.icon = icon;
        this.unit = unit;
        this.color = color;
        this.statisticsType = statisticsType;
    }
}
